﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharedModule
{
    public class ServerModel
    {
        public int port { get; set; }
        public DateTime startDate { get; set; }
        public DateTime endDate { get; set; }
    }

    public class Message
    {
        public string Type { get; set; }
        public dynamic Source { get; set; }
        public List<string> SessionIds { get; set; }
        public string Url { get; set; }
        public string RequestId { get; set; }
    }

    public class SubMessage
    {
        /// <summary>
        /// 单位 - 毫秒
        /// </summary>
        public int Interval { get; set; }
        /// <summary>
        /// 单位 - 秒
        /// </summary>
        public int Duration { get; set; }
    }

    public class MessageObject
    {
        [JsonProperty("sessionId")]
        public string SessionId { get; set; }

        [JsonProperty("requestId")]
        public string RequestId { get; set; }

        [JsonProperty("data")]
        public object Data { get; set; }
    }
}
